package cn.sunxyz.spider.pipeline;

import cn.sunxyz.spider.Page;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by yangrd on 2018/6/1
 **/
public class ConsolePipeLine<T> implements Pipeline<T> {

    private static Logger logger = LoggerFactory.getLogger(ConsolePipeLine.class);

    @Override
    public void process(T t, Page page) {
        logger.info("download : {} , title : {}", page.getRequest() ,page.getDocument().title());
    }

}
